package com.zy.news.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zy.news.entity.NewsComment;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface NewsCommentMapper extends BaseMapper<NewsComment> {

    @Select("SELECT * FROM news_comment WHERE fk_news_id=#{newsId}")
    List<NewsComment> findNewsCommentList(int newsId);
}
